-- GENERATED SPELL FOR [Flamekin Sprite] --


function spell0_9777(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_9777', 599, 1)
end

function Sorts_9777(pUnit, Event)
local choix_sorts_9777 = math.random(0, 0)
if choix_sorts_9777 == 0 then
pUnit:RegisterEvent('spell0_9777', 1, 1)
end
end

function mob9777_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9777', math.random(1500, 3000), 1)
end

function mob9777_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9777_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9777_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9777, 1, 'mob9777_Action')
RegisterUnitEvent(9777, 2, 'mob9777_Leave')
RegisterUnitEvent(9777, 3, 'mob9777_Kill')
RegisterUnitEvent(9777, 4, 'mob9777_Die')
